var Mock = require('mockjs');

exports.response = function (req, res) {
    return Mock.mock({
        "msg": "OK",
        "code": 0,
        "data": {
            "field": [
                {
                    "id": "code",
                    "name": "代码"
                },
                {
                    "id": "name",
                    "name": "名称"
                },
                {
                    "id": "holdingNumber",
                    "name": "持仓数量"
                },
                {
                    "id": "marketValue",
                    "name": "持仓市值"
                },
                {
                    "id": "netValueRatio",
                    "name": "占净值比例"
                },
                {
                    "id": "returnRate",
                    "name": "近1年内的收益率"
                },
                {
                    "id": "manager",
                    "name": "管理人简称"
                },
                {
                    "id": "fundManager",
                    "name": "基金经理"
                },
                {
                    "id": "fundType",
                    "name": "基金类型"
                }
            ],
            "list|8": [
                {
                    "code|+1": 1,
                    "name": "国农科技",
                    "holdingNumber": 4500,
                    "marketValue": 13.51,
                    "netValueRatio": 0.0039,
                    "returnRate": 34.55,
                    "manager": 0.29,
                    "fundManager": "基金经理",
                    "fundType": "基金类型"
                }
            ]
        }
    })
}